home *** CD-ROM | disk | FTP | other *** search
- PXFGETPWNAM(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFGGEETTPPWWNNAAMM - Gets password information about login name
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFGGEETTPPWWNNAAMM ((_n_a_m_e,, _i_l_e_n,, _j_p_a_s_s_w_d,, _i_e_r_r_o_r))
- IINNTTEEGGEERR _i_l_e_n,, _j_p_a_s_s_w_d,, _i_e_r_r_o_r
- CCHHAARRAACCTTEERR*_n
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The PPXXFFGGEETTPPWWNNAAMM routine uses the ggeettppwwnnaamm(3C) function to return
- password information about a login name. It uses the following
- components of the ppaasssswwdd structure:
-
- * ppww__nnaammee: login name
-
- * ppww__uuiidd: user ID
-
- * ppww__ggiidd: group ID
-
- * ppww__ddiirr: default login directory
-
- * ppww__sshheellll: default login shell or program
-
- The following components are supported by the UNICOS and IRIX
- operating systems, but are not part of the POSIX 1003.9-1992 standard.
-
- * ppww__ppaasssswwdd: encrypted password
-
- * ppww__aaggee: password age (character string) (unused on IRIX systems)
-
- * ppww__ccoommmmeenntt: comment
-
- * ppww__ggeeccooss: a comment in the UNICOS operating system; the user's real
- name on IRIX systems.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following is a list of valid arguments for this routine:
-
- _n_a_m_e An input character variable or array element containing the
- login name for which password information is requested.
-
- _i_l_e_n An input integer variable containing the character length of
- _n_a_m_e. If _i_l_e_n is zero, trailing blanks are stripped.
-
- _j_p_a_s_s_w_d An output handle of type ppaasssswwdd created with
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F).
-
- _i_e_r_r_o_r An output integer variable that contains zero if PPXXFFGGEETTPPWWNNAAMM
- was successful or nonzero if PPXXFFGGEETTPPWWNNAAMM was not successful.
-
- The PPXXFFGGEETTPPWWNNAAMM routine may return the following errors:
-
- EENNOOEENNTT If an entry matching the login name in _n_a_m_e was not
- found.
-
- EEBBAADDHHAANNDDLLEE If _j_p_a_s_s_w_d is an invalid handle or has an incorrect
- handle type (UNICOS and UNICOS/mk systems only).
-
- EEXXAAMMPPLLEESS
- In this example, the password information will be acquired for the
- login name rroooott.
-
- program pxftest
- integer ilen, ierror, value
- integer*8 jpasswd
- CALL PXFSTRUCTCREATE('passwd',jpasswd,ierror)
- name = 'root'
- ilen = 4
- CALL PXFGETPWNAM(name,ilen,jpasswd,ierror)
- if (ierror .eq. 0) then
- print *,'PASSED: pxfgetpwnam call'
- else
- print *,'FAILED: pxfgetpwnam call with error = ',ierror
- endif
- CALL PXFSTRUCTFREE(jpasswd,ierror)
- end
-
- SSEEEE AALLSSOO
- ggeettppwwnnaamm(3C), PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F), PPXXFFSSTTRRUUCCTTFFRREEEE(3F)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-